package com.imooc.controller;

import com.imooc.service.IService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author lhy
 * @Date 2021/10/21 15:35
 */
@RestController
public class TestController {

    @Autowired
    private IService iService;

    @GetMapping("sayHi")
    public String sayHi( @RequestParam("timeOut")
                                     Integer timeOut) {
        return iService.sayHi(timeOut);
    }

    public String error(){}
}
